function getFormValue(name) {
	var fm = document.getElementsByName(name);
	var obj = {};
	fm = fm.item(0);
	var fields = fm.childNodes;
	for (var i = 0; i < fields.length; ++i) {
		var e = fields.item(i);
		if (e.nodeType != 1)
			continue;
		obj[e.name] = e.value;
	}
	document.write(obj);
	return obj;
}
function getExtForm(form)
{
	var obj={};
	form.items.each(function(item,index,length){
		obj[item.getName()]=item.getValue();
	});
	return obj;
}